package com.thf.service;


import com.thf.model.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "news")
public interface NewsService {
    @RequestMapping("/newsFindAll")
    ResultData newsFindAll(@RequestBody Map map);
    @RequestMapping("/getCount")
    Integer getCount(@RequestBody Map map);
    @RequestMapping("/add")
    ResultData add(@RequestBody Map map);
    @RequestMapping("/getNewsById")
    ResultData getNewsById(@RequestParam("stringToInt") Integer stringToInt);
    @RequestMapping("/update")
    ResultData update(@RequestBody Map map);
    @RequestMapping("/delete")
    ResultData delete(@RequestParam("stringToInt") Integer stringToInt);
}
